<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>焦点</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    #focusPage {
      width: 900px;
      height: 720px;
      background-color: #000;
      position: relative;
    }

    .focusSwitch {
      width: 100%;
      height: 100%;
      background-color: #fff;
      margin: 10px auto;
      display: flex;
      flex-wrap: wrap;
    }

    .focusBox {
      display: flex;
      flex-wrap: wrap;
      border: 1px solid #000;
      margin: 10px;
    }

    .focusWidget {
      width: 100px;
      height: 20px;
      background-color: #254935;
      margin: 10px;
    }

    .focusScroll {
      width: 600px;
      height: 200px;
      white-space: nowrap;
      overflow: hidden;
      position: relative;
    }

    .focusScroll>.focusBox {
      display: block
    }

    .focusScrollContent {
      position: absolute;
      left: 0;
      top: 0;
    }

    .focusScrollContent>.focusScrollItem {
      display: inline-block;
      margin-right: -4px;
    }

    .scrollY>.focusScrollItem {
      display: block;
      margin-right: -4px;
    }

    .dark-focus {
      background-color: yellow;
    }

    .is-focus {
      background-color: #ff0000;
    }

    .dialog {
      position: absolute;
      left: 0;
      bottom: 0;
      z-index: 1;
      width: 900px;
      height: 220px;
      background-color: rgba(0, 0, 0, 0.8);
      display: none;
    }
  </style>
</head>

<body>
  <div id="focusPage">
    <div class="focusSwitch" id="switch1">
      <div class="focusWidget"></div>
      <div class="focusScroll focusBox" f-cache="heihh" f-scroll="X" id="scroll2">
        <div class="focusScrollContent" id="box2">
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div style="display: flex; flex-wrap: nowrap;">
              <div class="focusWidget"></div>
              <div class="focusWidget"></div>
              <div class="focusWidget"></div>
            </div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget" id="heihh">hahahahahaha</div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div style="display: flex; flex-wrap: nowrap;">
              <div class="focusWidget"></div>
              <div class="focusWidget"></div>
              <div class="focusWidget"></div>
            </div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
          <div class="focusScrollItem">
            <div class="focusWidget"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
<script src="../focus2.2.js"></script>
<script>
  var framework = new LyFocusFrame("focusPage");
  function onFocus(params) {

  }
  function onInBox(params) {
    console.log(params, "onInBox");

  }

</script>

</html>